package com.desmart.renjiao.attendance;

import com.desmart.renjiao.bean.CheckRecord;
import com.desmart.renjiao.bean.WorkDay;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;

public interface AttendanceRecord {

    interface AttendanceRecordM extends BaseModel{

        Observable<ResponseBody> checkServiceByMonth(RequestBody string);

        Observable<ResponseBody> checkServiceByDay(RequestBody string);

    }

    interface AttendanceRecordV extends BaseView{

        void onSuccessGetMonthErrorList(List<WorkDay> errorDayList, int year, int month);

        void onSuccessGetDayList(List<CheckRecord> recordsList, List<CheckRecord> errorList);
    }

    abstract class AttendanceRecordP extends BasePresenter<AttendanceRecordM,AttendanceRecordV>{

        abstract void checkServiceByMonth(int year,int month);

        abstract void checkServiceByDay(int year,int month,int day);

    }

}
